package com.xlhj.yucloud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xlhj.yucloud.entity.SysRoleInfo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: liucaijing
 * @description: SysRoleInfoMapper
 * @date: 2021/9/9 21:37
 */
@Repository
public interface SysRoleInfoMapper extends BaseMapper<SysRoleInfo> {

    /**
     * 根据用户ID查询角色权限
     * @param userId
     * @return
     */
    List<String> getRolePermsByUserId(Long userId);

    /**
     * 根据用户ID查询角色
     * @param userId
     * @return
     */
    List<Long> selectRoleListByUserId(Long userId);
}
